//
//  BasicView.m
//  CToolBox
//
//  Created by crj on 16/8/15.
//  Copyright © 2016年 oyf. All rights reserved.
//

#import "BasicView.h"
#import "Masonry.h"         

@implementation BasicView


+ (id)addSubviewsViewWithSuperView:(UIView *)superView
{
    
    id class = [[self alloc] init];
    
    BasicView *view = class;

    [superView addSubview:view];
    
    [view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.equalTo(superView.mas_leading);
        make.trailing.equalTo(superView.mas_trailing);
        make.top.equalTo(superView.mas_top);
        make.bottom.equalTo(superView.mas_bottom);
    }];
    
    return class;
}

- (void)layoutSubviews{
    
    [super layoutSubviews];
    self.backgroundColor = HEXCOLOR(kColorGray7, 1);
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
